package com.blb.blb_erp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.blb_erp.entity.SRole;
import com.blb.blb_erp.mapper.SRoleMapper;
import com.blb.blb_erp.service.ISRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chenheng
 * @since 2020-08-14
 */
@Service
public class SRoleServiceImpl extends ServiceImpl<SRoleMapper, SRole> implements ISRoleService {

    @Autowired
    private SRoleMapper roleMapper;

    @Override
    public List<SRole> findRolesByUserId(String userId) {
        return roleMapper.selectRolesByUserId(userId);
    }
}
